package com.hdc.hdc.warehouseManage;

import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//不添加这个排除类会报：TypeNotPresentExceptionProxy错
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@EnableCaching
@EnableTransactionManagement
public class WareHouseApplication extends SpringBootServletInitializer {
	
	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return  builder.sources(WareHouseApplication.class);
    }
	
	public static void main(String[] args) {
		SpringApplication.run(WareHouseApplication.class, args);
	}
}
